import request from '@/utils/request'
import { commercialApiUrl } from '@/api/config.js'


/**
 * *********************************************************************************
 * 重构 api start
 * *********************************************************************************
 */
//获取-分包人成本指导价分页数据
export function getSubcontractorCostList(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/query',
    method: 'post',
    data: query
  })
}
// 新增/修改分包人成本指导价数据
export function subcontractorCostEdit(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/addOrUpdate',
    method: 'post',
    data: query
  })
}
// 删除/撤销/作废 分包人成本指导价
export function subcontractorCostDel(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/delData',
    method: 'get',
    params: query
  })
}

// 填写分包人成本指导价数据
export function subcontractorCostFillIn(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/fillIn',
    method: 'post',
    data: query
  })
}
// 分包人成本指导价查看数据详情
export function subcontractorCostDetail(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/detail',
    method: 'get',
    params: query
  })
}
// 分包人成本指导价-填报状态修改
export function fillStatus(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/fillStatus',
    method: 'get',
    params: query
  })
}
//新增-获取季度数据
export function quarterlyData(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/quarterlyData',
    method: 'get',
    params: query
  })
}
//新增-获取季度数据
export function quarterlyList(query) {
  return request({
    url: commercialApiUrl + '/subcontractor-cost-price/quarterlyList',
    method: 'get',
    params: query
  })
}
//展示成本价格信息配置数据
export function costPriceList(query) {
  return request({
    url: commercialApiUrl + '/cost-price-info/query',
    method: 'get',
    params: query
  })
}
//新增、修改成本价格信息配置
export function costPriceEdit(query) {
  return request({
    url: commercialApiUrl + '/cost-price-info/updateOrAdd',
    method: 'post',
    data: query
  })
}
//删除成本价格信息配置数据
export function costPriceDel(query) {
  return request({
    url: commercialApiUrl + '/cost-price-info/delData',
    method: 'get',
    params: query
  })
}
/**
 * *********************************************************************************
 * 重构 api end
 * *********************************************************************************
 */
